package pkg01.tiposdatos;

import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;


public class TiposDatos {

    public static void main(String[] args) {
         
         boolean booleano = true;
         Boolean booleano2 = true;
         boolean booleano3 = Boolean.parseBoolean("true");
         
         // Tipos básicos
         boolean bo = Boolean.TRUE; //true ;
         
         byte b = 12;
         short s = 12;
         int i = 12;
         long l = 12l;
         
         float f = 12f;
         double d = 12d;
         
         // Tipos referencia
         
         Date fecha = new Date();
         System.out.println("Fecha: " +fecha.toString());
         System.out.println(new Thread());
         System.out.println(new Persona());
        try {
            new Persona().setEdad(-12);
        } catch (Exception ex) {
            System.out.println("Error: "+ex);
        }
    }
}
